package top.kfren.tools;

import com.jfinal.core.Controller;

public class MyUrlTools extends Controller {
	public void getJson(){
		String url=getPara("url");
		System.out.println(url);
		String json=URLtools.SendGET(url);
		System.out.println(json);
		renderJson(json);
	}
	public void getJsonp(){
		String url=getPara("url");
		System.out.println(url);
		String json=getPara("callback")+"("+URLtools.SendGET(url)+")";
		System.out.println(json);
		renderJson(json);
	}
}

//http%3a%2f%2f182.92.241.133%3a8001%2fAPI%2fFrontBackInf%2fLoginVerify%3fuserName%3d18638102151%26Pwd%3d123456%26marketNo%3dkfhj%26softType%3d1
//http%3a%2f%2f182.92.241.133%3a8001%2fAPI%2fFrontBackInf%2fLoginVerify%3fuserName%3d18638102151%26Pwd%3d123456%26marketNo%3d%e5%bc%80%e5%b0%81%e5%ae%8f%e8%bf%9b%26softType%3d1
